const express = require('express')
const path = require('path')
const app = express()
const opn = require('opn')

app.use(express.static('dist'))
// app.use(express.static(path.join(__dirname, 'dist')));

const server = app.listen(9000, function () {
  const { address, port } = server.address()
  console.log('http://localhost:9000')
  opn('http://localhost:9000')
})
